package cn.kgc.dao;

import cn.kgc.pojo.Branch;
import cn.kgc.pojo.Resume;
import cn.kgc.pojo.position;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author: 申乾航
 * @date: 2022/2/3
 * @description:
 */
@Repository
@Mapper
public interface resumeDao {

    /**
     * 招聘人员分页
     *
     * @return
     */
    Page<Resume> getList(@Param("reName1") String reName, @Param("posname") String posname, @Param("workEx") String workEx, @Param("resState") String resState
            , @Param("checkTime") String checkTime);


    /**
     * 查询职位名称.	职位编码，。所属部门:
     * 组织分页
     *
     * @return
     */
    Page<position> getBranchList(@Param("posName") String posName, @Param("posCode") String posCode, @Param("brName") String brName);

    /**
     * 下拉框
     *
     * @return
     */
    List<Branch> XiaLaKuangBranch();


    /**
     * 渲染职位名称，职位分类，职位编码
     *
     * @param id
     * @return
     */
    position getPositionFen(@Param("id") Integer id);



    // @Param("reName1") String reName1, @Param("reSex") String reSex, @Param("reType")String reType, @Param("email") String email, @Param("phone")String phone,
    //                @Param("peraddress")String peraddress, @Param("address")String address, @Param("politicsID")String politicsID, @Param("statusID")String statusID, @Param("SchoolTag")String SchoolTag, @Param("education")String education, @Param("major")String major,
    //                @Param("workEx")String workEx, @Param("payRequire")String payRequire, @Param("noJob")String noJob, @Param("graduate")String graduate, @Param("checkTime") Date checkTime, @Param("resume1")String resume1, @Param("affix") MultipartFile affix, @Param("isRecommend")String isRecommend, @Param("referrer")String referrer, @Param("recommendTime")Date recommendTime,
    //                @Param("opinion")String opinion, @Param("resState")String resState
    int tianjia(Resume resume);

//





    Integer selId(@Param("posCode")String posCode);

    /**
     *
     * 查看
     * @param id
     * @return
     */
    Resume xiugai_cha(@Param("id")Integer id);

    /**
     * 修改
     * @param resume
     * @return
     */
    Integer xiugai_shen(Resume resume);


    //position getPositionFens(@Param("posName") String  posName);

    Resume chakan(@Param("id")Integer id);



    int shanchu(@Param("id")Integer id,@Param("resState") String resState);


   // User ming(@Param("userCode") String userCode, @Param("userPassword") String userPwd);

    int xiugai_03(@Param("referrer")String referrer,@Param("recommendTime")String recommendTime,@Param("opinion")String opinion,@Param("id")Integer id);



}
